<template>
	<view>
		 <button @click="handleLogin">登录</button>
	</view>
</template>

<script setup>
	function handleLogin(){
		uni.login({
		  provider: 'weixin',
		  onlyAuthorize:true,
		  success: function (loginRes) {
		    console.log(loginRes);
		  }
		});
	}
</script>

<style>

</style>
